package com.oa.pm.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.joneying.common.web.response.Resp;
import com.oa.core.PageResult;
import com.oa.core.exception.DataIsEmptyException;
import com.oa.pm.dto.SocialRecruitmentChannelManagementAddDTO;
import com.oa.pm.dto.SocialRecruitmentChannelManagementListDTO;
import com.oa.pm.entity.SocialRecruitmentChannelManagement;
import com.baomidou.mybatisplus.service.IService;
import com.oa.pm.vo.SocialRecruitmentChannelManagementListVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 社招渠道管理表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface ISocialRecruitmentChannelManagementService extends IService<SocialRecruitmentChannelManagement> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<SocialRecruitmentChannelManagement> findList(Integer pageNum, Integer pageSize);

    /**
     * 根据id查询
     */
    SocialRecruitmentChannelManagementListVO findSocialRecruitmentChannelManagementById(String id);

    PageResult<SocialRecruitmentChannelManagementListVO> findSocialRecruitmentChannelManagementList(SocialRecruitmentChannelManagementListDTO socialRecruitmentChannelManagementListDTO);

    Resp add(SocialRecruitmentChannelManagementAddDTO socialRecruitmentChannelManagement) throws DataIsEmptyException;

    Resp edit(SocialRecruitmentChannelManagementAddDTO socialRecruitmentChannelManagement) throws DataIsEmptyException;

    void export(SocialRecruitmentChannelManagementListDTO socialRecruitmentChannelManagementListDTO, HttpServletResponse response);
}
